from utils.utils import get_project_root
import json

project_root = get_project_root()
configJson = project_root/ "config.json"
# 读取外部配置文件内容
with open(configJson, 'r') as f:
    config_data = json.load(f)

# 监控拉取数据的币种
config_down_instId = [
    'BTC','ETH','SOL','TON','DOGE','XRP','ADA','PEOPLE','BNB','LINK','TRX','DOT','AVAX',
        # 100 - 500 亿
    'SUI',
    # 'WBTC',
    # 'STETH',
    # 50 - 100 亿
    'PEPE','LTC','BCH','XLM','HBAR',
    # 'LEO',
    # 群友推荐【恋爱绝缘体】
    'AAVE',
    # 群友推荐【见微知著】
    'SSV',
    'ALCH',
]

# 均线突破 币种监控
config_movingAverage_instId = [
    'BTC',
    'ETH','SOL','TON','DOGE','XRP','ADA','PEOPLE','BNB','LINK','TRX','DOT','AVAX',
        # 100 - 500 亿
    'SUI',
    # 'WBTC','STETH',
    # 50 - 100 亿
    'PEPE','LTC','BCH','XLM','HBAR',
    # 'LEO',
    # 群友推荐【恋爱绝缘体】
    'AAVE',
    # 群友推荐【见微知著】
    'ALCH',
    # 'SSV',
]


# 欧易接口地址
server_url = config_data['server_url']
# server_url = "https://www.okx.com"
# 获取钉钉配置
webhook_url = "https://oapi.dingtalk.com/robot/send?access_token=ce67187852b328ad10cc56886f8ab036c160a3263a246b4448af76645b96443c"
secret = "SEC3dd630d658e321e002e822a5443c2df91981bff3120e2036698f4fd5afdbd9e0"